package com.gagakuai.enumeration;

/*
 * @program: blog
 * @description: 订单枚举
 * @author: houhong
 * @create: 2021-11-09 12:17
 */
public enum FilePathEnum {


    BPM_NOT_ONLINE("1", "bpm线下"),
    BPM_ONLINE("2", "bpm线上"),
    LOCAL_SYSYTEM("3", "本地系统");


    private String code;

    private String description;

    FilePathEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /*
     * @param code 代码
     * @return {@link String}
     * @Author houhong
     * @Description //TODO
     * @Date 12:22 下午 2021/12/9
     */
    public static String getNameByCode(String code) {


        for (FilePathEnum temp : FilePathEnum.values()) {

            if (temp.getCode().equals(code)) {
                return temp.getDescription();
            }
        }
        return null;

    }
}